package com.hyfrogx.modules.zoom.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hyfrogx.common.utils.QueryExt;
import com.hyfrogx.modules.zoom.dao.HyNmtPowerDao;
import com.hyfrogx.modules.zoom.entity.HyNmtPower;
import com.hyfrogx.modules.zoom.service.HyNmtPowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ：Li9527
 * @date ：Created in 2019-11-18 19:05
 * @description：${description}
 * @modified By：
 * @version: 1.0.0
 */
@Service("HyNmtPowerService")
public class HyNmtPowerServiceImpl extends ServiceImpl<HyNmtPowerDao, HyNmtPower> implements HyNmtPowerService {

    @Autowired
    HyNmtPowerDao hyNmtPowerDao;

    @Override
    public Page selectPageByConditions(QueryExt query) {
        Map map = new HashMap();
        map.putAll(query.getCondition());
        query.setRecords(hyNmtPowerDao.selectPageByConditions(query, map));
        return query;
    }
}
